/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package frmsystem;


import java.util.Observable;

import javax.swing.JOptionPane;

import frmsystem.util.SystemConstants;

/**
 *
 * @author imran
 */
public class Person extends Party implements IPerson{

	private String birthdate;

	@Override
	public void update(Observable arg0, Object arg1) {
		if (arg1 != null) {
			IAccount account = (IAccount)arg1;
			if (account.getLastTransaction().getEvent().toNotify(account))
				//TODO 
			
			JOptionPane.showMessageDialog(null, "Email is send");
		}
		
	}

	@Override
	public String getBirthDate() {
		return this.birthdate;
	}

	@Override
	public void setBirthDate(String dob) {
		this.birthdate = dob;		
	}

	@Override
	public int getType() {
		return SystemConstants.PARTY_PERSON;
	}
        
}
